/**
 * Created by fupeng on 17/2/16.
 */
var movieCollectionModel = require('../models/MovieCollectionModel');
module.exports ={
    updateMovieCollection : function (req,res) {
        movieCollectionModel.updateMovieCollection(req, function (data) {
            res.json(data);
        });
    },
    getCollectionMovie : function(req,res){
        res.render("collectionmovie",{
            title: '收藏电影',
            layout: false
        });
    },
    getCollectionMovieInfo: function (req, res) {
        movieCollectionModel.getMovieInfoLimitModel(req, function(data){
            res.json(data);
        });
    }
};

